﻿<phone:PhoneApplicationPage 
    xmlns:local="clr-namespace:RGBFinder"
    local:TiltEffect.IsTiltEnabled="True"
    x:Class="RGBFinder.ScorePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True"
    xmlns:toolbox="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    >

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="{Binding Path=Strings.Title, Source={StaticResource LocalizedStrings }}" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="{Binding Path=Strings.Victory, Source={StaticResource LocalizedStrings }}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="80*" />
                <RowDefinition Height="80*" />
                <RowDefinition Height="80*" />
                <RowDefinition Height="80*" />
                <RowDefinition Height="40*" />
                <RowDefinition Height="80*" />
                <RowDefinition Height="80*" />

            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="240*" />
                <ColumnDefinition Width="240*" />
            </Grid.ColumnDefinitions>
            <toolbox:PerformanceProgressBar Name="ToggleProgressBar" Height="30" Grid.ColumnSpan="2" Grid.Row="4" Visibility="Collapsed" IsEnabled="False" IsIndeterminate="False"/>
            <TextBlock Grid.Row="0"  Grid.Column="0" Height="70" HorizontalAlignment="Left"  Name="Score_Label" Text="{Binding Path=Strings.Score1, Source={StaticResource LocalizedStrings }}" VerticalAlignment="Center" TextAlignment="Left" FontSize="40"/>
            <TextBlock Grid.Column="0" Height="70" HorizontalAlignment="Left"  Name="Difficulty_Label" Text="{Binding Path=Strings.Difficulty, Source={StaticResource LocalizedStrings }}" VerticalAlignment="Center" Grid.Row="1" TextAlignment="Left" FontSize="40"/>
            <TextBlock Grid.Column="0" Height="70" HorizontalAlignment="Left"  Name="Timer_Label" Text="{Binding Path=Strings.Timer, Source={StaticResource LocalizedStrings }}" VerticalAlignment="Center" Grid.Row="2" TextAlignment="Left" FontSize="40"/>
            <TextBlock Grid.Column="0" Height="70" HorizontalAlignment="Left"  Name="Tests_Label" Text="{Binding Path=Strings.Tests1, Source={StaticResource LocalizedStrings }}" VerticalAlignment="Center" Grid.Row="3" TextAlignment="Left" FontSize="40"/>
            <TextBlock Grid.Column="1" Height="70" HorizontalAlignment="Stretch"  Name="Score_Area" Text="" VerticalAlignment="Center" TextAlignment="Right" Grid.Row="0" FontSize="40"/>
            <TextBlock Grid.Column="1" Height="70" HorizontalAlignment="Stretch"  Name="Difficulty_Area" Text="" VerticalAlignment="Center" Grid.Row="1" TextAlignment="Right" FontSize="40"/>
            <TextBlock Grid.Column="1" Height="70" HorizontalAlignment="Stretch"  Name="Timer_Area" Text="" VerticalAlignment="Center" Grid.Row="2" TextAlignment="Right" FontSize="40"/>
            <TextBlock Grid.Column="1" Height="70" HorizontalAlignment="Stretch"  Name="Tests_Area" Text="" VerticalAlignment="Center" Grid.Row="3" TextAlignment="Right" FontSize="40"/>
            <TextBox Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="2" HorizontalAlignment="Stretch"  Name="Name_Area" Text="{Binding Path=Strings.WriteName, Source={StaticResource LocalizedStrings }}" VerticalAlignment="Stretch" FontSize="30" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" GotFocus="Name_Area_GotFocus" TextAlignment="Center" Padding="10" KeyDown="Name_Area_KeyDown" />
            <Button Content="{Binding Path=Strings.Submit, Source={StaticResource LocalizedStrings }}" Grid.Column="0" Grid.Row="6" HorizontalAlignment="Stretch" Name="Submit_Button" VerticalAlignment="Stretch" Grid.ColumnSpan="2" Click="Submit_Button_Click" FontSize="40"/>
        </Grid>
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
